package com.zhiyou100.listening;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

/**
 * @author yang
 */
public class ApplicationLiveListener implements ServletContextListener{
	@Override
	public void contextInitialized(ServletContextEvent event) {
		//定义application的域属性 记录在线人数
		event.getServletContext().setAttribute("onLineCount", 0);
	}
	@Override
	public void contextDestroyed(ServletContextEvent arg0) {
	}

	

}
